<?php  include $this->GetTemplate('header');  ?>
<body>
<div class="blog-header text-center">

	<h1><a href="<?php  echo $host;  ?>"><?php  echo $name;  ?></a></h1>
	<p><?php  echo $subname;  ?></p>
<hr/>
</div>

<section>
<div class="container">
<div class="row">
<div class="col-md-8">
<?php if ($article->Type==ZC_POST_TYPE_ARTICLE) { ?>
<?php  include $this->GetTemplate('post-single');  ?>
<?php }else{  ?>
<?php  include $this->GetTemplate('post-page');  ?>
<?php } ?>
  
</div>
<div class="col-md-4 blog-sidebar">
<div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">网站搜索</h3></div>
        <div class="panel-body">
        <ul class="nav nav-pills nav-stacked">
  <form name="search" method="post" action="<?php  echo $host;  ?>zb_system/cmd.php?act=search" class="form-inline"><input type="text" name="q" class="form-control" width:"100%"/> <input type="submit" value="我要搜索" class="btn btn-primary" /></form>
</ul></div>
      </div>
      
	<div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">网站导航</h3></div>
        <div class="panel-body">
        <ul class="nav nav-pills nav-stacked">
  <?php  if(isset($modules['navbar'])){echo $modules['navbar']->Content;}  ?>
</ul></div>
      </div>
<div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">最新文章</h3></div>
        <div class="panel-body">
       <?php  $array=TcgetList(5,null,null,null,null,null,null,'new');;  ?>
<ul class="nav nav-pills nav-stacked">
<?php  foreach ( $array as $related) { ?>
<li><span class="sidebar_title"><a href="<?php  echo $related->Url;  ?>" title="<?php  echo $related->Title;  ?>"><?php  echo $related->Title;  ?></a></span></li>
<?php }   ?>
</ul></div>
      </div>

     <div class="panel panel-default">
        <div class="panel-heading"><h3 class="panel-title">热门文章</h3></div>
        <div class="panel-body">
       <?php  $array=TcgetList(5,null,null,null,null,null,null,'hot');;  ?>
<ul class="nav nav-pills nav-stacked">
<?php  foreach ( $array as $related) { ?>
<li><span class="sidebar_title"><a href="<?php  echo $related->Url;  ?>" title="<?php  echo $related->Title;  ?>"><?php  echo $related->Title;  ?></a></span></li>
<?php }   ?>
</ul></div>
      </div>

     
</div>

</div></div>
</section>

<?php  include $this->GetTemplate('footer');  ?>